package org.ysh.vo;

import lombok.Data;
import lombok.ToString;
import org.ysh.domain.User;

import java.util.Date;

@ToString
@Data
public class UserVo {

    private Integer id;

    private String username;

    private String realName;

    private String email;

    private String roles;

    private String depts;

    private Integer status;

    private Date lastLoginTime;

    public UserVo(){}

    public UserVo(User user){
        this.id = user.getId();
        this.username = user.getUsername();
        this.realName = user.getRealName();
        this.email = user.getEmail();
        this.status = user.getStatus();
    }
}
